﻿@using CashFlow.Db.Entity;
@{
    ViewBag.Title = "TeamAppointmentList";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<style type="text/css">
    .title {
        padding: 5px 0px;
        text-align: center;
        font-size: 18px;
        font-weight: 700;
        margin: 0px auto;
        margin-top: 10px;
    }

    .not-appointment-msg {
        text-align: center;
        font-size: 16px;
        color: red;
        margin: 0px auto;
        padding: 5px 0px;
    }

    .list {
        width: 85%;
        margin: 0px auto;
        margin-top: 5px;
        padding-bottom: 80px;
    }

    .list-item {
        background-color: white;
        border-radius: 15px;
        margin-top: 15px;
    }

    .list div:first-child {
        margin-top: 0px;
    }

    .list-item tr {
        height: 40px;
        border-bottom: 1px dashed #cccccc;
    }

        .list-item tr:last-child {
            border-bottom: none;
        }

    .list-item td {
        padding: 2px;
        font-size: 14px;
    }
</style>
<div class="title">团队预约明细(@DateTime.Now.ToString("yyyy-MM-dd"))</div>
@{
    if (!string.IsNullOrEmpty(ViewBag.Msg))
    {
        <div class="not-appointment-msg">@ViewBag.Msg</div>
    }
}
<div class="list">
    @{
        if (ViewBag.Data != null)
        {
            foreach (UserInfoEntity item in ViewBag.Data)
            {
                <div class="list-item">
                    <table align="center" style="width: 95%;">
                        <tr>
                            <td width="160" align="right">姓名: </td>
                            <td align="left">@item.Name</td>
                        </tr>
                        <tr>
                            <td align="right">手机号码: </td>
                            <td align="left">@item.Phone</td>
                        </tr>
                    </table>
                </div>
            }
        }
    }
</div>